From 06f5edf80a302e7ff1d58a66b84674558db8ad6d Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 16 Mar 2024 16:26:54 -0500 Subject: [PATCH] Change name: instance_method_mock_fixture() -> late_instance_mock_fixture() --- tests/test_pgwui_upload_core.py | 2 +- tests/views/test_upload.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_pgwui_upload_core.py b/tests/test_pgwui_upload_core.py index 782a316..804ecf9 100644 --- a/tests/test_pgwui_upload_core.py +++ b/tests/test_pgwui_upload_core.py @@ -41,7 +41,7 @@ def test_pgwui_upload_core_is_pgwui_component(pgwui_component_entry_point): # includeme() -mock_scan = testing.instance_method_mock_fixture('scan') +mock_scan = testing.late_instance_mock_fixture('scan') @pytest.mark.unittest diff --git a/tests/views/test_upload.py b/tests/views/test_upload.py index 4afc17a..9eb8c52 100644 --- a/tests/views/test_upload.py +++ b/tests/views/test_upload.py @@ -115,17 +115,17 @@ def isolate_upload_view(monkeypatch, pyramid_request_config): # BaseTableUploadHandler.__init__() -mock_tuh_init = testing.instance_method_mock_fixture('__init__') +mock_tuh_init = testing.late_instance_mock_fixture('__init__') # BaseTableUploadHandler.resolve_table() -mock_resolve_table = testing.instance_method_mock_fixture('resolve_table') +mock_resolve_table = testing.late_instance_mock_fixture('resolve_table') # BaseTableUploadHandler.good_table() -mock_good_table = testing.instance_method_mock_fixture('good_table') +mock_good_table = testing.late_instance_mock_fixture('good_table') @pytest.fixture -- 2.34.1